import request from '@/utils/request'

// 查询药品采购计划确认明细列表 (分页)
export function selectPageDrugPurchasingPlanItem(query) {
  return request({
    url: '/drug/drugPurchasingPlanItem/selectPage',
    method: 'get',
    params: query
  })
}

// 查询药品采购计划确认明细列表 (不分页)
export function listDrugPurchasingPlanItem(query) {
  return request({
    url: '/drug/drugPurchasingPlanItem/list',
    method: 'get',
    params: query
  })
}

// 查询药品采购计划确认明细详细
export function getDrugPurchasingPlanItem(id) {
  return request({
    url: '/drug/drugPurchasingPlanItem/' + id,
    method: 'get'
  })
}

// 新增药品采购计划确认明细
export function addDrugPurchasingPlanItem(data) {
  return request({
    url: '/drug/drugPurchasingPlanItem',
    method: 'post',
    data: data
  })
}

// 修改药品采购计划确认明细
export function updateDrugPurchasingPlanItem(data) {
  return request({
    url: '/drug/drugPurchasingPlanItem',
    method: 'put',
    data: data
  })
}

// 删除药品采购计划确认明细
export function delDrugPurchasingPlanItem(id) {
  return request({
    url: '/drug/drugPurchasingPlanItem/' + id,
    method: 'delete'
  })
}
